import request from "@/utils/request";

// 查询收付款计划列表
export function listPaymentCollectionPlan(query) {
  return request({
    url: "/contract/PaymentCollectionPlan/list",
    method: "get",
    params: query,
    handleError: true,
  });
}

// 查询收付款计划详细
export function getPaymentCollectionPlan(paymentCollectionPlanId) {
  return request({
    url: "/contract/PaymentCollectionPlan/" + paymentCollectionPlanId,
    method: "get",
    handleError: true,
  });
}

// 新增收付款计划
export function addPaymentCollectionPlan(data) {
  return request({
    url: "/contract/PaymentCollectionPlan",
    method: "post",
    data: data,
  });
}

// 修改收付款计划
export function updatePaymentCollectionPlan(data) {
  return request({
    url: "/contract/PaymentCollectionPlan",
    method: "put",
    data: data,
  });
}

// 删除收付款计划
export function delPaymentCollectionPlan(paymentCollectionPlanId) {
  return request({
    url: "/contract/PaymentCollectionPlan/" + paymentCollectionPlanId,
    method: "delete",
  });
}
